#include"System.h"
#include"Window.h"
#include<fstream>
int main() {
	Window win(375, 812, EX_SHOWCONSOLE);
	win.setWinTitle("校园导览系统");
	System sys;

	string infile1 = "SaveUser.txt";
    string infile2 = "SaveAdmin.txt";
    string infile3 = "SaveOrdinaryDot.txt";
    string infile4 = "SaveScenery.txt";
    string infile5 = "SaveCrossroad.txt";
    string infile6 = "SaveBusStation.txt";
    string infile7 = "SaveStraight.txt";
    ReadProgram(infile1, infile2, infile3, infile4, infile5, infile6, infile7);

    sys.run();

    SaveProgram(infile1, infile2, infile3, infile4, infile5, infile6, infile7);

	return win.exec();
}